/******************************************************************************/
/* @ All Rights Reserved Copyright (C) 2014 broada,Ltd.                       */
/*                                                                            */
/*  NAME      = apm4lua_report.c                                              */
/*  NOTE      =                                                               */
/*  DATE      = 2015/09/06 by yaohl                                           */
/******************************************************************************/

#ifndef __APM4LUA_REPORT_H_
#define __APM4LUA_REPORT_H_

int luaReport_get_messageType(lua_State *p_lua_handle);
int luaReport_get_l4proto(lua_State *p_lua_handle);
int luaReport_get_l7proto(lua_State *p_lua_handle);
int luaReport_set_l7proto(lua_State *p_lua_handle);

int luaReport_get_srcIp(lua_State *p_lua_handle);
int luaReport_set_srcIp(lua_State *p_lua_handle);
int luaReport_get_srcPort(lua_State *p_lua_handle);
int luaReport_set_srcPort(lua_State *p_lua_handle);

int luaReport_get_dstIp(lua_State *p_lua_handle);
int luaReport_set_dstIp(lua_State *p_lua_handle);
int luaReport_get_dstPort(lua_State *p_lua_handle);
int luaReport_set_dstPort(lua_State *p_lua_handle);

int luaReport_get_fieldSize(lua_State *p_lua_handle);
int luaReport_get_existsField(lua_State *p_lua_handle);

int luaReport_get_field(lua_State *p_lua_handle);
int luaReport_add_fieldStr(lua_State *p_lua_handle);
int luaReport_add_fieldLong(lua_State *p_lua_handle);
int luaReport_add_fieldDouble(lua_State *p_lua_handle);

int luaReport_del_fieldAll(lua_State *p_lua_handle);
int luaReport_del_fieldIndex(lua_State *p_lua_handle);
int luaReport_dumpField(lua_State *p_lua_handle);

int luaReport_get_microsecond(lua_State *p_lua_handle);
int luaReport_get_millisecond(lua_State *p_lua_handle);

int luaReport_str_to_utf8(lua_State *p_lua_handle);

int luaReport_PEM_read_bio_RSAPrivateKey(lua_State *p_lua_handle);
int luaReport_RSA_private_decrypt(lua_State *p_lua_handle);
int luaReport_AES_cbc_encrypt(lua_State *p_lua_handle);

#endif
